package com.zzyl.mapper;

import com.github.pagehelper.Page;
import com.zzyl.entity.NursingProject;
import com.zzyl.vo.NursingProjectVo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface CustomerElderMapper {
    //分页查询
    Page<NursingProjectVo> getByPage(@Param("name") String name, @Param("pageNum") Integer pageNum, @Param("pageSize") Integer pageSize, @Param("status") Integer status);
//根据id查询
    @Select("select * from nursing_project where id = #{id}")
    NursingProject getById(Long id);
}
